<script setup lang="ts">

</script>

<template>
  <div class="container">
    <div class="adv">
      <div class="price-show">一口价店铺展示</div>
      <div class="more">更多 <span class="icont">&#xe6a6;</span></div>
    </div>
    <div class="shops-box">
      <div class="shop" v-for="item in 6">
        <div class="shop-header">
          <div class="shop-icon"></div>
          <div class="shop-name">精品多年统一建站历史红红红火火</div>
          <div><div class="shop-top">交易额：TOP</div></div>
        </div>
        <div class="shop-list">
          <div class="shop-item" v-for="domain in 4">
            <div class="item-left">lanming.cc</div>
            <div class="item-right"><span class="text-xs">¥</span> 88888888</div>
          </div>
        </div>
        <div class="shop-info flex justify-between text-sm text-gray-400">
          <div class="info-left">
            卖家信用：已隐藏
          </div>
          <div class="info-right">
            店铺销量：已隐藏
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.container{
  width: 1160px;
  margin: 0 auto;
  //background-color: li#fdfdfd #eeeeee;
  background:linear-gradient(to bottom,#fdfdfd 40px,#eeeeee);
}
  @keyframes move {
    0% {
      margin-left: 0px;
    }
    50% {
      margin-left: 10px;
    }
    100% {
      margin-left: 0px;
    }
  }
  .adv{
    background-image: url("~/assets/imgs/shop-adv-bg.png");
    background-size: 1200px;
    height: 94px;
    margin: 0 auto 30px;
    padding:20px;
    &:hover{
      .icont{
        animation: move 1s linear infinite;
      }
    }
    .price-show{
      font:{
        size:16px;
        weight: bold;
      }
      color:var(--el-color-black);
      padding-bottom: 10px;
    }
    .more{
      color:var(--el-color-primary);

    }

  }
.shops-box{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-gap:20px;
}
.shop{
  &:hover{
    -webkit-transform: translateY(-6px);
    -moz-transform: translateY(-6px);
    -ms-transform: translateY(-6px);
    -o-transform: translateY(-6px);
    transform: translateY(-6px);
    box-shadow: 0px 6px 25px 0px rgba(195, 199, 203, 0.6);
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
  }
  background-color: white;
  padding: 20px 15px;
  box-sizing: border-box;
}
.shop-header{
  display: grid;
  grid-template-columns:48px 1fr 104px;
  height: 68px;
  border-bottom: 1px solid #eeeeee;
}
.shop-icon{
  background-image: url("~/assets/imgs/shop-img.png");
  width: 48px;
  height: 48px;
  background-size: 100%;
}
.shop-name{
  color:var(--el-color-black);
  font:{
    size: 16px;
    weight: bold;
  }
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 48px;
  margin-left: 10px;
}
.shop-top{
  padding:5px;
  background-color: #f7ece7;
  color: #C67E5A;
  font-size: 14px;
  line-height: 20px;
  margin-top: 10px;
}
.shop-list{
  padding: 10px 18px;
  border-bottom: 1px solid #eeeeee;
  line-height: 36px;
  margin-bottom: 20px;
}
.shop-item{
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  .item-left{
    &:hover{
      padding-left: 10px;
      color:var(--el-color-danger)
    }
    color:var(--el-color-black)
  }
  .item-right{
    color:var(--el-color-error);
  }
}
</style>